.header-inner {
  list-style: none;
  padding: 12px 0;
  margin-bottom: 0;
  position: relative;

  & > li {
    &:not(.pull-right) {
      float: left;
    }

    &:not(:last-child) {
      margin-right: -2px;
    }
  }
}

.logo {
  a,a:hover {
    color: #fff;
    text-transform: uppercase;
    display: block;
    font-size: 16px;
    font-weight: 500;
    cursor:default;
  }
}

.top-menu {
  list-style: none;
  padding: 0;

  span {
    display: inline-block;
    color: #FFF;
    line-height: 40px;
  }

  & > li {
    position: relative;
    display: inline-block;
    margin: 0 1px;
    vertical-align: top;
    min-width: 40px;

    .dropdown-menu-lg {
      padding: 0;

      .lv-body {
        min-height: 295px;
        overflow-x: hidden;
      }
    }

    button {
      font-size: 22px;
      color: #FFF;
      margin: 0 !important;
    }

    & > .badge {
      position: absolute;
      font-style: normal;
      background: @m-red;
      right: 0;
      top: 0;
      color: #FFF;
    }
  }

  @media (max-width: @screen-xs-max) {
    .dropdown-menu-lg {
      width: ~"calc(100% - 28px)" !important;
    }

    .dropdown-menu {
      right: 14px;
      top: 55px;
    }
  }
}

.top-tab-menu-content > .divider:first-child {
  display: none;
}

#header {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.28);
  min-height: @header-height;
  .user-select(none);

  &:not(.sidebar-toggled) {
    &.header-up {
      .translate3d(0, -70px, 0);
    }
  }

  position: fixed;
  z-index: 61;
  width: 100%;
  left: 0;
  top: 0;
  padding: 0 11px;

  .logo a {
    padding: 7px 10px;
  }
  .transition(all);
  .transition-duration(300ms);
}

#menu-trigger {
  width: 65px;
  height: 35px;
  cursor: pointer;

  .line-wrap .line {
    background-color: #fff;
  }
  .line-wrap {
    width: 18px;
    height: 12px;
    .transition(all);
    .transition-duration(300ms);
    margin: 12px 20px;

    .line {
      width: 18px;
      height: 2px;
      .transition(all);
      .transition-duration(300ms);

      &.center {
        margin: 3px 0;
      }
    }
  }

  &.open {
    .line-wrap {
      .rotate(180deg);

      .line {
        &.top {
          width: 12px;
          transform: translateX(8px) translateY(1px) rotate(45deg);
          -webkit-transform: translateX(8px) translateY(1px) rotate(45deg);
        }

        &.bottom {
          width: 12px;
          transform: translateX(8px) translateY(-1px) rotate(-45deg);
          -webkit-transform: translateX(8px) translateY(-1px) rotate(-45deg);
        }
      }
    }
  }
}

/* Full Width Layout */
#toggle-width {
  @media (min-width: @screen-lg-min) {
    .toggle-switch {
      margin: 9px 30px 0 0;

      .ts-helper {
        height: 11px;
        width: 33px;

        &:before {
          width: 20px;
          height: 20px;
          top: -5px;
        }
      }

      input:checked + .ts-helper {
        background: rgba(0, 0, 0, 0.26);
        &:before {
          left: 18px;
          background: #fff;
        }

      }
    }
  }

  @media (max-width: @screen-lg-min) {
    display: none;
  }
}

.um-toggled {
  @media (min-width: @screen-lg-min) {
    #header {
      padding-left: 15px;
    }

    #menu-trigger {
      display: none;
    }
  }
}

/* For Stupid IE9 */
.ie9 {
  #header:not(.sidebar-toggled) {
    &.header-up {
      display: none;
    }
  }
}

.top-tab-menu {
  height: 50px;
  background: rgba(0, 0, 0, 0.04);
  margin: 0 -15px;
  color: #FFF;
  padding-top: 2px;
  position: relative;
  a {
    color: white;
  }
  md-tabs {
    min-height: 0 !important;
    margin-right: 65px;
    margin-left: 15px;
    .md-tab {
      color: white !important;
      padding: 12px 40px 12px 30px;
      * {
        -webkit-user-select: none;
        -webkit-user-drag: none;
      }
      i.icon {
        display: inline-block;
        position: absolute;
        cursor: pointer;
        left: 25px;
        font-size: 16px;
        top: 21px;
      }
      font-weight: 500;
      md-menu {
        i {
          display: inline-block;
          position: absolute;
          cursor: pointer;
          .transition(all);
          .transition-duration(300ms);
          right: 15px;
          top: 17px;
          color: rgba(0, 0, 0, 0.5);
          border-radius: 50%;
          width: 16px;
          height: 16px;
          line-height: 1.2;
          &:hover {
            color: white;
            .rotate(360deg);
            background: rgba(0, 0, 0, 0.35);
          }
        }
      }
    }
    md-tabs-canvas {
    }
    md-tabs-wrapper {
      border: none;
    }
    md-tab-content {
      top: 30px;
    }
    md-ink-bar {
      height: 3px;
      color: transparent;
      background: transparent;
      box-shadow: inset 0px -3px 0 0px #FFEB3B;
    }
  }
  md-icon {
    color: inherit !important;
  }
  .menubar {
    float: left;
    margin-top: -2px;
    //border-right: 2px solid rgba(0, 0, 0, 0.1);
    .md-menu {
      button {
        height: 50px;
        &:focus {
          background: rgba(255, 255, 255, 0.1);
        }
        i {
          margin-right: 5px;
          font-size: 20px;
          vertical-align: middle;
        }
      }
      &.md-open {
        button {
          background: rgba(255, 255, 255, 0.2);
        }
      }
    }
  }

  .menubar-actions {
    margin-top: -2px;
    text-align: center;
    width: 60px;
    position: absolute;
    right: 0;
    top: 0;
    button {
      height: 50px;
      width: 50px;
      font-size: 20px;
    }
  }
}

.search-widget {
  input {
    transition: all 300ms;
    border: none;
    border-bottom: 2px solid;
    border-color: transparent;
    background: transparent;
    color: #FFF;
    width: 30px;
    padding-bottom: 5px;
  }
  &.search-open input {
    padding-left: 30px;
    width: 300px;
    border-color: rgba(0, 0, 0, 0.3);
  }
}

.top-menu li .search-widget button {
  margin-right: -30px !important;
}

.top-nav-content-tab {
  height: 100%;
  overflow: hidden;
  & > .nav-tabs {
    display: none;
  }
  .tab-content {
    height: 100%;
    overflow: hidden;
    padding: 0;
  }
  .tab-pane {
    height: 100%;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    padding-bottom: 50px;
    padding-top: 10px;
  }
}

body {
  &.um-toggled {
    .top-tab-menu {
      @media (max-width: @screen-lg-min) {
        padding-left: 0;
      }
    }
  }
  &.um-fullscreen {
    #header {
      top: -@header-height;
    }
  }
  &.um-notinsettab {
    #header {
      box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    }
  }
}
